package com.ling.dao;

import com.ling.bean.Question;
import com.ling.bean.QuestionUserList;
import com.ling.bean.QuestionUserListExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionUserListMapper {
    //定制查询，获取用户待回答的问题，并封装成question对象
    List<QuestionUserList> getToDoQuestion(String userId);

    long countByExample(QuestionUserListExample example);

    int deleteByExample(QuestionUserListExample example);

    int deleteByPrimaryKey(String id);

    int insert(QuestionUserList record);

    int insertSelective(QuestionUserList record);

    List<QuestionUserList> selectByExample(QuestionUserListExample example);

    QuestionUserList selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") QuestionUserList record, @Param("example") QuestionUserListExample example);

    int updateByExample(@Param("record") QuestionUserList record, @Param("example") QuestionUserListExample example);

    int updateByPrimaryKeySelective(QuestionUserList record);

    int updateByPrimaryKey(QuestionUserList record);
}